import { default as request, cloud } from '@/framework/utils/request'


// 查询企业查询调用接口信息列表
export function listInterfaceInfo(query) {
  return request({
    url: cloud.business + '/enterpriseInterfaceInfo/page',
    method: 'get',
    params: query
  })
}

// 查询企业查询调用接口信息详细
export function getInterfaceInfo(id) {
  return request({
    url: cloud.business + '/enterpriseInterfaceInfo/detail?id=' + id,
    method: 'get'
  })
}

// 新增企业查询调用接口信息
export function addInterfaceInfo(data) {
  return request({
    url: cloud.business + '/enterpriseInterfaceInfo/add',
    method: 'post',
    data: data
  })
}

// 修改企业查询调用接口信息
export function updateInterfaceInfo(data) {
  return request({
    url: cloud.business + '/enterpriseInterfaceInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除企业查询调用接口信息
export function delInterfaceInfo(id) {
  return request({
    url: cloud.business + '/enterpriseInterfaceInfo/delete',
    method: 'post',
    data: { id: id }
  })
}
